﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Pap.Data
{
    /// <summary>
    /// 
    /// </summary>
    public partial class Governorate : ILookUpEntity, IGovernorate
    {
        #region ILookUpEntity Members
        /// <summary>
        /// Gets or sets the ID.
        /// </summary>
        /// <value>
        /// The ID.
        /// </value>
        [System.Data.Linq.Mapping.Column(Name = "GovernorateID", Expression = "GovernorateID")]
        public Guid ID
        {
            get
            {
                return GovernorateID;
            }
            set
            {
                GovernorateID = value;
            }
        }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>
        /// The name.
        /// </value>
        public string Name
        {
            get
            {
                return this.GovernorateName;
            }
            set
            {
                this.GovernorateName = value;
            }
        }

        #endregion

        #region IGovernorate Members


        /// <summary>
        /// Gets the centers.
        /// </summary>
        IEnumerable<ICenter> IGovernorate.Centers
        {
            get
            {
                return this.Centers.OfType<ICenter>();
            }
        }

        #endregion
    }
}
